﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="HolidayView.aspx.cs" Inherits="HolidayView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="ModuleContent">
        <ul class="NavigationButtons">
            <li>
                <asp:LinkButton ID="lbAddNew" CssClass="navigation_button" Text="Add New" runat="server" PostBackUrl="~/HolidayEdit.aspx?m=liHoliday" />
            </li>
        </ul>
    </div>
    <asp:GridView ID="HolidayGirdView" CssClass="skineedgrid" runat="server" DataSourceID="HolidayDS"
        AutoGenerateColumns="false" Width="75%" DataKeyNames="HolidayID" AllowSorting="true">
        <Columns>
            <asp:BoundField DataField="HolidayID" HeaderText="ID" Visible="False" />
            <asp:BoundField DataField="Name" HeaderText="Title" SortExpression="Name" />
            <%--<asp:BoundField DataField="NameGeo" HeaderText="დასახელება(ქართული)" />--%>
            <asp:BoundField DataField="HolidayDate" HeaderText="Date" DataFormatString="{0:MM/dd/yyyy}" SortExpression="HolidayDate" />
            <asp:TemplateField>
                <ItemTemplate>
                    <a href="holidayedit.aspx?id=<%#Eval("HolidayID") %>&m=liHoliday">Edit</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <asp:ObjectDataSource ID="HolidayDS" runat="server" SelectMethod="GetAll" TypeName="DAL.DBManagers.HolidaysManager"
        SortParameterName="sortBy"></asp:ObjectDataSource>
</asp:Content>

